//
//  CYNet.h
//  CYTest
//
//  Created by Rain on 16/6/21.
//  Copyright © 2016年 Rain. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

//代理
@protocol NetDelegate <NSObject>
/**  *  代理回调方法  *  *  @param feedbackInfo 服务器返回的数据  */

-(void)getWeatherInfoSuccessFeedback:(id)feedbackInfo;
-(void)getWeatherInfoFailFeedback:(id)failInfo;

@end

@interface CYNet : NSObject

@property (nonatomic,strong) id<NetDelegate> delegate;

+(CYNet *)getInstance;

-(void)getWeatherWithCityName:(NSString *)cityName;

@end
